from django.db import models
from dingxiang_doctor.utils.basemodels import BaseModel

# Create your models here.

class Department(BaseModel):
    class Meta:
        db_table = "department"
        verbose_name_plural = "科室"

class Disease(BaseModel):
    symptom = models.CharField(max_length=2000, null=True, verbose_name="常见症状")
    description = models.CharField(max_length=2000, null=True, verbose_name="疾病简介")
    cause_reason = models.CharField(max_length=2000, null=True, verbose_name="病因")
    diagnosis = models.CharField(max_length=2000, null=True, verbose_name="诊断")
    treatment = models.CharField(max_length=2000, null=True, verbose_name="治疗")
    precaution = models.CharField(max_length=2000, null=True, verbose_name="预防")
    department = models.ForeignKey(Department, on_delete=models.CASCADE, verbose_name="科室")
    es_id = models.CharField(max_length=200, null=True, verbose_name="es_id")
    class Meta:
        db_table = "disease"
        verbose_name_plural = "疾病"
